package com.company.dcm.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 四分制明细表
 * @TableName rf_cloth_sheet_detail_four_score
 */
@TableName(value ="rf_cloth_sheet_detail_four_score")
@Data
public class R_ClothSheetDetailFourScore implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 终端设备号
     */
    @TableField(value = "device_code")
    private String deviceCode;

    /**
     * 四分制报告单序列号
     */
    @TableField(value = "serialno")
    private String serialno;

    /**
     * 瑕疵名字
     */
    @TableField(value = "defect_name")
    private String defectName;

    /**
     * 检测时间
     */
    @TableField(value = "check_date")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone= "GMT+8")
    private Date checkDate;

    /**
     * 是否为停机（0：不停机_1：停机）
     */
    @TableField(value = "is_stop")
    private Integer isStop;

    /**
     * 瑕疵概率
     */
    @TableField(value = "defect_probability")
    private Double defectProbability;

    /**
     * 瑕疵路径
     */
    @TableField(value = "pic_relative_path")
    private String picRelativePath;

    /**
     * 图片名称
     */
    @TableField(value = "picture_name")
    private String pictureName;

    /**
     * 瑕疵左上角坐标
     */
    @TableField(value = "lucoordinate")
    private String lucoordinate;

    /**
     * 瑕疵右下角坐标
     */
    @TableField(value = "rdcoordinate")
    private String rdcoordinate;

    /**
     * 品质扣分（即按四分制规则的扣分）
     */
    @TableField(value = "quality_deduct_points")
    private Integer qualityDeductPoints;

    /**
     * 发生瑕疵的圈数
     */
    @TableField(value = "circle_number")
    private Integer circleNumber;

    /**
     * 发生瑕疵的轮数
     */
    @TableField(value = "turns_number")
    private Integer turnsNumber;

    /**
     * 检验标准名称
     */
    @TableField(value = "check_stand")
    private String checkStand;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone= "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone= "GMT+8")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    /**
     * 表格序号
     */
    @TableField(exist = false)
    private int no;

    /**
     * 图片链接
     */
//    @TableField(exist = false)
//    private String url;
    /**
     * 备注
     */
    @TableField(exist = false)
    private String record;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}